<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="all" />
<TITLE>RBAC角色管理</TITLE>
<link rel='stylesheet' type='text/css' href='/__08KT_TMS/rbac/Tpl/default/Public/css/style.css' />
<script language='JavaScript' src='/__08KT_TMS/rbac/Tpl/default/Public/js/Common.js'></script> 
<script language='JavaScript' src='/__08KT_TMS/rbac/Tpl/default/Public/js/prototype.js'></script> 
<SCRIPT LANGUAGE="JavaScript">
//指定当前组模块URL地址
var URL = '/__08KT_TMS/rbac/index.php/Group';
var APP	 =	 '/__08KT_TMS/rbac/index.php';
var PUBLIC = '/__08KT_TMS/Public';
</SCRIPT>
</HEAD>
<body>
<!-- 头部区域 -->
<div id="header" class="header">
<div class="headTitle" style="margin:8pt 10pt">RBAC角色管理</div>
</div>
<!-- 菜单区域  -->
<div id="menu" class="menu"><div class="list" >
<table class="list shadow" cellpadding=0 cellspacing=0 >
<tr>
	<td height='5' colspan=7 class="toptd" ></td>
</tr>
<tr class="row" >
	<th class="tcenter space"><img src="/__08KT_TMS/rbac/Tpl/default/Public/images/gohome.gif" width="15" height="14" border="0" alt="" align="absmiddle"> 模块导航 </th>
</tr>

<tr class="row " >
	<td><img src="/__08KT_TMS/rbac/Tpl/default/Public/images/comment.gif" width="9" height="9" border="0" align="absmiddle" alt=""> <a href="/__08KT_TMS/rbac/index.php/Node/index/">项目节点管理</a></td>
</tr>
<tr class="row " >
	<td><img src="/__08KT_TMS/rbac/Tpl/default/Public/images/comment.gif" width="9" height="9" border="0" align="absmiddle" alt=""> <a href="/__08KT_TMS/rbac/index.php/Group/index/">角色权限管理</a></td>
</tr>
<tr>
	<td height='5' colspan=7 class="bottomtd"></td>
</tr>
</table>
</div></div>
<!-- 主页面开始 -->
<div id="main" class="main" >

<SCRIPT LANGUAGE="JavaScript">
<!--
function selectGroup(){
 var result= PopModalWindow('/__08KT_TMS/rbac/index.php/Group/select/parentId/0',268,360);
 if(typeof(result) == "undefined") return;
	$('groupName').value=result[0][0];
	$('parentId').value=result[0][1];
}
function notice(name){
	switch (name)
	{
	case 'name':		showTip('组名称');break;
	case 'parent':	showTip('选择上级组，可以继承上级组的权限');break;
	case 'rate':			showTip('是否需要进行提成，如果选择是的话，会在提成管理里面可以设置提成比例');break;
	case 'status':		showTip('组状态');break;
	case 'remark':		showTip('组备注信息');break;
	}
}
//-->
</SCRIPT>
<div class="content">
<div class="title">新增组 [ <A HREF="/__08KT_TMS/rbac/index.php/Group">返回列表</A> ]</div>
<div id="result" class="result none"></div><div id="tips"  class="tips"  > 请输入权限组信息，红色标注的字段为必填字段。</div>
<FORM METHOD=POST action="/__08KT_TMS/rbac/index.php/Group/insert/" id="form1" >
<TABLE cellpadding=3 cellspacing=3 >
<TR>
	<TD class="tRight" >组名：</TD>
	<TD class="tLeft" ><INPUT TYPE="text" class="medium bLeftRequire" onfocus="notice('name')"  check='^\S+$' warning="组名不能为空,且不能含有空格" NAME="name"></TD>
</TR>
<TR>
	<TD class="tRight" >上级组：</TD>
	<TD class="tLeft" ><INPUT TYPE="text" class="medium bLeft" onfocus="notice('parent')"  NAME="groupName"><INPUT TYPE="hidden" class="medium bLeft" NAME="parentId"> <a href="javascript:selectGroup()" ><IMG SRC="/__08KT_TMS/rbac/Tpl/default/Public/images/search.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="" align="absmiddle"></a></TD>
</TR>
<TR>
	<TD class="tRight">组状态：</TD>
	<TD class="tLeft"><SELECT class="small bLeft" onfocus="notice('status')"  NAME="status">
	<option value="1">启用</option>
	<option value="0">禁用</option>
	</SELECT></TD>
</TR>
<TR>
	<TD class="tRight">需要提成：</TD>
	<TD class="tLeft"><SELECT class="small bLeft" onfocus="notice('rate')"  NAME="requireRate">
	<option value="0">否</option>
	<option value="1">是</option>
	</SELECT></TD>
</TR>
<TR>
	<TD class="tRight tTop">描 述：</TD>
	<TD class="tLeft"><TEXTAREA class="large bLeft" NAME="remark" onfocus="notice('remark')"  ROWS="5" COLS="57"></TEXTAREA></TD>
</TR>
<TR>
	<TD ></TD>
	<TD class="center"><div style="width:85%;margin:5px">
	<INPUT TYPE="hidden" name="_AJAX_SUBMIT_" value="1">
	<div class="impBtn fLeft"><INPUT TYPE="submit" value="保存" class="save imgButton"></div>
	<div class="impBtn fRig"><INPUT TYPE="reset" class="reset imgButton" value="清空" ></div>
	</div></TD>
</TR>
</TABLE>
</FORM>
</div>

</div>
<div id="footer" class="footer">
Copyright &reg; 2007 Sof Studio All Rights Reserved.</div>
</BODY>
</HTML>